package com.caidan.diagram.config;

import com.caidan.diagram.interceptor.MyInterceptor;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Component;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * @项目名 WebMvcConfig
 * @描述 拦截器
 * @时间 2025/3/20 15:37
 * @作者 小菜蛋
 */
@Component
@AllArgsConstructor
public class WebMvcConfig implements WebMvcConfigurer {

    private final MyInterceptor myIntercept;
    @Override
    public void addInterceptors(InterceptorRegistry registry) {
//        registry.addInterceptor(myIntercept)
//            .addPathPatterns("/**");
    }
}
